package data.Table;

public interface TableInterface {
	
	
	
	public final static int table_head_size = 100 ;  
	public final static int table_page_defaultsize = 1024 ;//default page size
	public final static int table_head_string = 16;
	public final static int table_head_pagesize = 2; /// max 65536

	public final static int table_head_maxpayload = 1;//how many percentage can be used in the page(max)
	public final static int table_head_minpayload = 1; //how many percentage can be used in the page(min)
	public final static int table_head_firstfreelistpage = 4;//the first page of free list
	public final static int table_head_numberoffreelist = 4;
	public final static int table_head_tablenum = 4;  //how many table/index in the database file
	public final static int table_head_tableoffset= 4; //the blank space offset of table
	public final static int table_head_overflow = 4;  //the overflow page number
	
	public final static int table_head_ch_size = 2;
	public final static int table_head_ch_rootnum = 4;
	public final static int table_head_ch_argsnum = 2;
	public final static int table_head_ch_elsize = 2;
	
	
	public final static int table_page_type_btreepleaf = 1;
	public final static int table_page_type_btreepinner = 2;
	public final static int table_page_type_btreeleaf = 4;
	public final static int table_page_type_btreeinner = 8;
	
	
	
	public abstract void readHead();
	public abstract void writeHead();
	public abstract void setHead();
	public abstract void ini();
}
